project(SER_DES_USER_VER_2_MERGED)

add_library(interop_native_module_light_2 SHARED interop_native_module_light.cpp)
target_include_directories(interop_native_module_light_2 PRIVATE ${ANI_INCLUDE_DIR})
target_include_directories(interop_native_module_light_2 PRIVATE ${PANDA_HELPERS_SOURCE_DIR})

set(ARKTSCONFIG_PATH "${CMAKE_CURRENT_BINARY_DIR}/arktsconfig.json")
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/arktsconfig.json.in" "${ARKTSCONFIG_PATH}")

compile_panda_source_list(
    TARGET_NAME ser_des_user_ver_2_merged_srcs
    SOURCE_LIST
        "InteropNativeModuleLight.ets"
        "SerializerBase.ets"
        "DeserializerBase.ets"
    ARKTSCONFIG ${ARKTSCONFIG_PATH}
    ARK_LINK_OUTPUT_FILE "${CMAKE_CURRENT_BINARY_DIR}/SerDesUserVer2.abc"
    EXTRA_DEPS interop_native_module_light_2
)
